Optimization using echocardiography